from rest_framework.serializers import ModelSerializer
from merchants.models import ShopsModel, GoodModel, GoodTypeModel


# 商家序列化
class ShopsSer(ModelSerializer):
    class Meta:
        model = ShopsModel
        fields = '__all__'


# 商品种类
class GoodTypeModelSer(ModelSerializer):
    class Meta:
        model = GoodTypeModel
        fields = '__all__'


# 商品
class GoodModelSer(ModelSerializer):
    class Meta:
        model = GoodModel
        fields = '__all__'


